package com.hy.admin.dao;

import com.hy.admin.entity.AccountEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by shitou on 17/12/25.
 */
@Repository
public interface AccountDao {
    AccountEntity selectById(@Param("id") long id);
    AccountEntity selectByLoginName(@Param("userName") String userName);
    void insert(AccountEntity accountEntity);
    int updatePassword(@Param("id") Long id,@Param("password") String password);
}
